package com.ruicar.afs.jobadmin.mapper;

import com.ruicar.afs.jobadmin.core.model.AfsJobLogReport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * The type AfsJobLogReportMapper
 * <p>Description: </p>
 *
 * @author Fzero
 * @version 1.0
 * @date Created on 2020.06.13 14:17:12
 * @since 1.0
 */
@Mapper
public interface AfsJobLogReportMapper {

    /**
     * Save int
     *
     * @param afsJobLogReport afs job log report
     * @return the int
     */
    public int save(AfsJobLogReport afsJobLogReport);

    /**
     * Update int
     *
     * @param afsJobLogReport afs job log report
     * @return the int
     */
    public int update(AfsJobLogReport afsJobLogReport);

    /**
     * Query log report list
     *
     * @param triggerDayFrom trigger day from
     * @param triggerDayTo   trigger day to
     * @return the list
     */
    public List<AfsJobLogReport> queryLogReport(@Param("triggerDayFrom") Date triggerDayFrom,
                                                @Param("triggerDayTo") Date triggerDayTo);

    /**
     * Query log report total afs job log report
     *
     * @return the afs job log report
     */
    public AfsJobLogReport queryLogReportTotal();

}
